package com.example.androidnote;

import android.app.Application;

import com.common.common.CommonInjection;
import com.common.common.utils.NetUtil;
import com.example.androidnote.api.remote.IApiService;
import com.example.androidnote.constant.NetInfo;

public class MyApplication extends Application {

    public static NetUtil<IApiService> mNetUtil;

    @Override
    public void onCreate() {
        super.onCreate();
        NetUtil.init(this);
        CommonInjection.init(this);

        mNetUtil = new NetUtil<>(IApiService.class);
        mNetUtil.initHttpConfig(NetInfo.BASE_URL);
    }

    public static NetUtil<IApiService> getNetUtil(){
        return mNetUtil;
    }


}
